package com.link2room.soundwave.feign.rodimus;

import com.link2room.common.dto.result.base.BaseResultDto;
import com.link2room.rodimus.dto.result.base.SalesmanMappingDto;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * Created by LN on 2017/12/28
 */
@FeignClient("${spring.gateway.name}/${feign.rodimus}")
public interface SalesmanMappingFeignService {

    /**
     * 分销员工号映射
     * @param paramMap
     * @return
     * @throws Exception
     */
    @RequestMapping(method = RequestMethod.GET,value = "/in/Salesmans/MappingEmployee",consumes = MediaType.APPLICATION_JSON_VALUE)
    BaseResultDto<SalesmanMappingDto> getMappingEmployee(@RequestParam Map<String, Object> paramMap)throws Exception;
}
